package com.maysham.coder.server.model;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "user_group")
@Data
public class UserGroup extends BaseModel {
    @DBRef
    private User user;
    @DBRef
    private Group group;
}
